package com.ty.skysystem.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ty.common.utils.PageUtils;
import com.ty.common.utils.Query;

import com.ty.skysystem.dao.RoleDao;
import com.ty.skysystem.entity.RoleEntity;
import com.ty.skysystem.service.RoleService;

@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<RoleDao, RoleEntity> implements RoleService {

  @Override
  public PageUtils queryPage(Map<String, Object> params) {
    IPage<RoleEntity> page =
        this.page(new Query<RoleEntity>().getPage(params), new QueryWrapper<RoleEntity>());

    return new PageUtils(page);
  }
}
